package cn.lili.modules.store.mapper;

import cn.lili.modules.store.entity.dos.Market;
import cn.lili.modules.store.entity.vos.StoreVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MarketMapper extends BaseMapper<Market> {

    /**
     * 获取店铺分页列表
     *
     * @param page         分页
     * @param queryWrapper 查询条件
     * @return 店铺VO分页列表
     */
    @Select("select m.* from li_market as m ${ew.customSqlSegment}")
    IPage<Market> getMarketList(IPage<Market> page, @Param(Constants.WRAPPER) Wrapper<Market> queryWrapper);
}
